package com.cn.plugin.config;

/**
 * @author : Hydra
 * @date: 2021/3/19 20:27
 * @version: 1.0
 */
//@Configuration
//public class MybatisConfig {
//
//    @Autowired
//    DataSource dataSource;
//
//    @Bean
//    public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception {
//        SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean();
//        sqlSessionFactoryBean.setDataSource(dataSource);
//
//        sqlSessionFactoryBean.setPlugins(new Interceptor[]{new ExecutorPlugin()});
//        return sqlSessionFactoryBean.getObject();
//    }
//}
